function markdownEditorChanged() {
 var editor = document.getElementById("markdown");
 if (tinyMCE.activeEditor) {
  tinyMCE.activeEditor.setContent(marked(editor.value));
 }
}
